package com.kashow.bean;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * Created by yybs on 16/12/21.
 */

public class SelectionItem implements Parcelable {
    private String name;
    private String eventName;

    public SelectionItem(String name, String eventName) {
        this.name = name;
        this.eventName = eventName;
    }

    public String getEventName() {
        return eventName;
    }

    public void setEventName(String eventName) {
        this.eventName = eventName;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }


    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.name);
        dest.writeString(this.eventName);
    }

    public SelectionItem() {
    }

    protected SelectionItem(Parcel in) {
        this.name = in.readString();
        this.eventName = in.readString();
    }

    public static final Creator<SelectionItem> CREATOR = new Creator<SelectionItem>() {
        @Override
        public SelectionItem createFromParcel(Parcel source) {
            return new SelectionItem(source);
        }

        @Override
        public SelectionItem[] newArray(int size) {
            return new SelectionItem[size];
        }
    };
}
